package com.congee02.modelshellmvn.controller;

import com.congee02.modelshellmvn.entity.account.Account;
import com.congee02.modelshellmvn.service.SysadminService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class SysadminController {

    @Resource
    private SysadminService sysadminService;

    @PostMapping("alter")
    public Account alterRole4Account(@RequestBody Account account) {
        return sysadminService.alterRole4Account(account);
    }

}
